<?php
	emailForm::test();
	// Config
	$attributes = array(
		'id'	=> 'contactForm');
	
	$data1 = array(
		'name'	=> 'contactButton',
        'value' => 'Contact',
        'type'	=> 'submit',
		'class'	=> 'contactButton'
	);
	
	// Printing the contact form
	echo "<div id='contactDiv'>
			<div class='validation'>"
				. validation_errors() .
			"</div>" . 
			form_open(current_url(), $attributes)
				. "Subject"
				. form_input('headlineEmail')
				. "Your email"
				. form_input(EMAIL_LOCATION)
				. "Main message"
				. form_textarea('messageEmail')
				. form_submit($data1)
			. form_close() 
		. "</div>";